#include"WebPageQuery.h"
#include<iostream>

using std::cout;

int main()
{
    string path="/home/sakura/all_file/search_engine/conf/config.json";
    Config conf(Configuration::GetInstance(path));
    cout<<" config set success\n";
    SplitToolJieba split(Configuration::GetInstance());
    cout<<" jieba make success\n";
    WebPageQuery web(&split);
    cout<<" init webpagequery\n";
    while(1)
    {
    string in;
    cout<<"输入一个:  \n";
    std::cin>>in;
    cout<<web.doQuery(in);
    }
}
